Modern C Up and Running by Martin Kalin
Author:Martin Kalin
Language: eng
Format: epub
ISBN: 9781484286760
Publisher: Apress
Through a stream, a channel that connects a source and a destination: the file could be either the source (read operation) or destination (write operation).
To study the API for the high-level I/O is, in effect, to study various ways of managing I/O streams. The forthcoming examples do so.#include <stdio.h>
#define FILE_NAME "data.in"
void main() {
float num;
printf("A floating-point value, please: ");
int how_many_floats = fscanf(stdin, "%f", &num); /* last arg must be an address */
if (how_many_floats < 1)
fprintf(stderr, "Bad scan -- probably bad characters
");
else
fprintf(stdout, "%f times 2.1 is %f
", num, num * 2.1);
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The History of a Difficult Child by Mihret Sibhat(66)
AMCP 706-180 by Explosive Behavior(66)
AMCP 706-180 - Explosive Behavior by explosive behavior text(56)
AMCP 706-180 - Explosive Behavior by Explosive Behavior text(53)
Acorn Archimedes 3010 by AntoPISA(32)
Fungal interactions with the explosive RDX (hexahydro-1,3,5-trinitro-1,3,5-triazine) by Unknown(28)
Explosive cladding with gold by Unknown(28)
